package com.woniuxy.lab.woniu_lab_boss.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("实验日志")
public class LogDto {
    @ApiModelProperty(value = "日志ID", example = "1")
    private Integer id;

    /**
     * 靶场ID
     */
    @ApiModelProperty(value = "靶场ID", example = "1")
    private Integer rangeId;

    /**
     * 记录时间
     */
    @ApiModelProperty(value = "记录时间", example = "LocalDateTime")
    private LocalDateTime logTime;

    /**
     * 日志信息
     */
    @ApiModelProperty(value = "日志详情", example = "luca修改了实验xxx")
    private String info;

    /**
     * 用户id(用户操作时)
     */
    @ApiModelProperty(value = "操作用户的ID 可能为null", example = "1", allowEmptyValue = true)
    private Integer userId;

    /**
     * 讲师ID(讲师操作时)
     */
    @ApiModelProperty(value = "操作讲师的ID 可能为null", example = "1", allowEmptyValue = true)
    private Integer teacherId;

    /**
     * 操作人昵称(用户操作时)
     */
    @ApiModelProperty(value = "操作用户的昵称 可能为null", example = "lucas", allowEmptyValue = true)
    private String nickname;

    /**
     * 操作人用户名(讲师操作时)
     */
    @ApiModelProperty(value = "操作讲师的账号 可能为null", example = "lucas", allowEmptyValue = true)
    private String username;
}
